$(document).ready(function() {
	$('#selectAll').click(function() {
		var parent = this;
		$(":checkbox").each(function() {
			if (parent !== this) {
				this.checked = parent.checked;
			}
		 });
	});
	
	$('.cancelButton').click(function(){
		$(this).parents(".cancelFields").find('input, select, textarea').each(function () {
			this.value = "";
		});
	});
});
